/**
* Response.java
* Version 1.0.0
* Created on 2018年11月1日
* 
*/
package com.yincheng.oms.bussiness.order;

public class Response {
	public static final String SUCCESS = "2000";
	
	public static final String SERVER_ERROR = "5000";
	
	public static final String DATA_NULL_ERROR = "5001";//数据空错误
	
	public static final String DATA_FORMAT_ERROR = "5002";//数据格式错误
	
	public static final String FILE_TYPE_ERROR = "5003";//文件类型错误
	
	/**
	 * 状态码
	 */
	private String code;
	
	/**
	 * 描述信息
	 */
	private String message;
	
	/**
	 * 错误详细信息
	 */
	private String errorMessage;
	
	public Response(String code) {
		if(SUCCESS.equals(SUCCESS)) {
			this.code = code;
			this.message = "操作成功";
		}
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the errorMessage
	 */
	public String getErrorMessage() {
		return errorMessage;
	}

	/**
	 * @param errorMessage the errorMessage to set
	 */
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	
}
